package com.jt.www.model.param.endorse;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.util.Date;


@ApiModel(description = "保存批单参数")
@Table(name = "t_save_endorse_param")
public class SaveEndorseParam {
    @Id
    @ApiModelProperty(hidden = true)
    private Long id;

    @ApiModelProperty(value = "投保单号")
    @NotNull(message = "投保单号不能为空")
    private String insuranceId;

    @ApiModelProperty(value = "订单号")
    private String applyId;

    @ApiModelProperty(value = "批单类型：2-新增，3-删减，4-替换，5-批退，6-协议批加，7-附加被保险人全加，8-附加被保险人全减，9-新增附加教师，10-删减附加教师")
    @NotNull(message = "批单类型不能为空")
    private Integer endorType;

//    @ApiModelProperty(value = "险种类型：0-实责险（企业），1-实责险（学校），2-校责险（学校），4-云南教职工，10-云南校责，" +
//            "13-云南综合，16-山东校责")
//    @NotNull(message = "险种类型不能为空")
//    private Integer policyType;

    @ApiModelProperty(value = "批加减及替换清单文件id")
//    @NotNull(message = "文件id不能为空")
    private String fileId;

    @ApiModelProperty(value = "被替换清单文件id")
    private String originFileId;

//    @ApiModelProperty(value = "年级：一年级，二年级，三年级，四年级，五年级，六年级，七年级")
//    private String grade;

    @ApiModelProperty(value = "1-投保单，2-批单", hidden = true)
    private Integer isIns;

    @ApiModelProperty(value = "是否删除:1-是；0-否", hidden = true)
    private Boolean isDeleted;

    @ApiModelProperty(value = "创建时间", hidden = true)
    private Date createTime;

    @ApiModelProperty(value = "创建人编号")
    @NotNull(message = "用户编号不能为空")
    private String usercode;

    public Long getId() {
        return this.id;

    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getInsuranceId() {
        return this.insuranceId;

    }

    public void setInsuranceId(String insuranceId) {
        this.insuranceId = insuranceId;
    }

    public String getApplyId() {
        return this.applyId;

    }

    public void setApplyId(String applyId) {
        this.applyId = applyId;
    }

    public Integer getEndorType() {
        return this.endorType;

    }

    public void setEndorType(Integer endorType) {
        this.endorType = endorType;
    }

    public String getFileId() {
        return this.fileId;

    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    public String getOriginFileId() {
        return this.originFileId;

    }

    public void setOriginFileId(String originFileId) {
        this.originFileId = originFileId;
    }

    public Integer getIsIns() {
        return this.isIns;

    }

    public void setIsIns(Integer isIns) {
        this.isIns = isIns;
    }

    public Boolean getIsDeleted() {
        return this.isDeleted;

    }

    public void setIsDeleted(Boolean deleted) {
        this.isDeleted = deleted;
    }

    public Date getCreateTime() {
        return this.createTime;

    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUsercode() {
        return this.usercode;

    }

    public void setUsercode(String usercode) {
        this.usercode = usercode;
    }
}
